﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace IceDog.JsonDotNet.Model
{
    [JsonObject(MemberSerialization.OptIn)]
    [DataContract]
    public class NFile
    {
        // excluded from serialization
        // does not have JsonPropertyAttribute
        // excluded from serialization
        // does not have DataMemberAttribute
        public Guid Id { get; set; }

        [JsonProperty]
        [DataMember]
        public string Name { get; set; }
        [JsonProperty]
        [DataMember]
        public NDirectory Parent { get; set; }
        [JsonProperty]
        [DataMember]
        public int Size { get; set; }
    }
}
